{% extends "site.html" %}
{% block pagetitle %} Home {% endblock %}
{% block content %}
{% if categories %}
 <h2>Categories</h2>
 {% for category in categories %}
   <p><a href="{% url ilex.views.category category.slug %}">{{ category.name }}</a></p>
 {% endfor %}
{% endif %}
{% if years %}
 <h2>Archives</h2>
 {% for year in years %}
   <p><a href="{% url ilex.views.archive year.year %}">{{ year.year }}</a></p>
 {% endfor %}
{% endif %}
{% if contents %}
 <h2>All Articles</h2>
 {% for item in contents %}
   <p><a href="{% url ilex.views.article item.slug %}">{{ item.title }}</a></p>
 {% endfor %}
{% endif %}
{% endblock %}
